﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using DataAccess;

namespace DataService
{
    [ServiceContract]
    public interface IArticles
    {
        [OperationContract]
        Article AddArticleWithAutor(Article article, string name);
        [OperationContract]
        Article GetArticle(int articleId);
        [OperationContract]
        void UpdateArticle(Article article);
        [OperationContract]
        void RemoveArticle(int id);
        [OperationContract]
        List<Article> GetAuthorArticles(string authorName);
        [OperationContract]
        bool AddAuthorToArticle(int articleId, string authorName);
        [OperationContract]
        bool RemoveAuthorFromArticle(int articleId, string authorName);
        [OperationContract]
        List<Article> GetAllArticles();
    }
}
